package com.example.audiostreaming.utils;

/**
 * Constants常量工具类
 */
public class UtilConstants {

    public final static int INDEX_RECOMMEND = 0;//推荐页面索引
    public final static int INDEX_SUBSCRIPTION = 1;//订阅页面索引
    public final static int INDEX_HISTORY = 2;//历史页面索引
    public final static int INDEX_MINE = 3;//我的页面索引
    public final static int COUNT_PAGE = 3;//页面个数


    public static int COUNT_RECOMMEND = 50;//推荐列表的专辑数量


    public static int COUNT_DEFAULT = 50;//默认请求的数量


    public static int COUNT_HOT_WORD = 20; //搜索热词的数量


    //数据库相关的常量
    //数据库的名字
    public static final String DB_NAME = "ximala.db";
    //数据库的版本
    public static final int DB_VERSION_CODE = 1;
    //订阅的表名
    public static final String SUB_TB_NAME = "tb_subscription";
    public static final String SUB_ID = "_id";
    public static final String SUB_COVER_URL = "coverUrl";
    public static final String SUB_TITLE = "title";
    public static final String SUB_DESCRIPTION = "description";
    public static final String SUB_TRACKS_COUNT = "tracksCount";
    public static final String SUB_PLAY_COUNT = "playCount";
    public static final String SUB_AUTHOR_NAME = "authorName";
    public static final String SUB_ALBUM_ID = "albumId";
    //订阅最多个数
    public static final int MAX_SUB_COUNT = 100;
    //历史记录的表名
    public static final String HISTORY_TB_NAME = "tb_history";
    public static final String HISTORY_ID = "_id";
    public static final String HISTORY_TRACK_ID = "historyTrackId";
    public static final String HISTORY_TITLE = "historyTitle";
    public static final String HISTORY_PLAY_COUNT = "historyPlayCount";
    public static final String HISTORY_DURATION = "historyDuration";
    public static final String HISTORY_UPDATE_TIME = "historyUpdateTime";
    public static final String HISTORY_COVER = "historyCover";
    public static final String HISTORY_AUTHOR = "history_author";
    //最大的历史记录数
    public static final int MAX_HISTORY_COUNT = 100;


    public static final String SP_NAME_USER = "user";
    public static final String SP_KEY_PHONE = "phone";
    public static final String SP_KEY_PASSWORD = "password";
    public static final String SP_KEY_NAME = "name";

}
